﻿<%@ Page Title="Iniciar sesión" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="Triunfadores.Web.Account.Login" %>
<%@ Register Src="~/Account/OpenAuthProviders.ascx" TagPrefix="uc" TagName="OpenAuthProviders" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    
    <div class="login-box">
        <div class="login-logo">
            <a href="~/Default.aspx"><b>Triunfadores</b></a>
        </div>
        <!-- /.login-logo -->
        <div class="login-box-body">
            <p class="login-box-msg">Ingresa para iniciar tu sesión</p>
            <asp:Login runat="server" ViewStateMode="Disabled" RenderOuterTable="false">
                <LayoutTemplate>
                    <p class="validation-summary-errors" style="color: red">
                        <asp:Literal runat="server" ID="FailureText" />
                    </p>

                    <div class="form-group has-feedback">
                        <asp:Label runat="server" AssociatedControlID="UserName">Nombre de usuario</asp:Label>
                        <asp:TextBox CssClass="form-control" runat="server" ID="UserName" placeholder="Nombre de Usuario" />
                        <asp:RequiredFieldValidator Display="Dynamic"  runat="server" ForeColor="Red" ControlToValidate="UserName" CssClass="field-validation-error" ErrorMessage="El campo de nombre de usuario es obligatorio." />
                        <span class="glyphicon glyphicon-user form-control-feedback"></span>
                    </div>
                    <div class="form-group has-feedback">
                        <asp:Label runat="server" AssociatedControlID="Password">Contraseña</asp:Label>
                        <asp:TextBox CssClass="form-control" runat="server" ID="Password" placeholder="Contraseña" TextMode="Password" />
                        <asp:RequiredFieldValidator Display="Dynamic" runat="server" ForeColor="Red" ControlToValidate="Password" CssClass="field-validation-error" ErrorMessage="El campo de contraseña es obligatorio." />
                        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                    </div>
                    <div class="row">
                        <div class="col-xs-7">
                            <div class="checkbox">
                                <label>
                                    <asp:CheckBox runat="server" ID="RememberMe" />
                                    <asp:Label runat="server" AssociatedControlID="RememberMe">¿Recordar cuenta?</asp:Label>
                                </label>
                            </div>
                        </div>
                        <!-- /.col -->
                        <div class="col-xs-5">
                            <asp:Button CssClass="btn btn-primary btn-block btn-flat" runat="server" CommandName="Login" Text="Iniciar sesión" />
                        </div>
                        <!-- /.col -->
                    </div>
                </LayoutTemplate>
            </asp:Login>

            <a href="#">Olvide mi contraseña</a><br>
        </div>
        <!-- /.login-box-body -->
    </div>

</asp:Content>
